<?php
echo $this->adminToolBar('hotel', 'index', '/admin/hotel/add/', '/admin/hotel/edit/', '/admin/hotel/delete/', '');
?>
<div class="mid-content" id="grid_hotel">
<?php
	if(empty($this->Hotel_arr))
	{
?>
	<div class="error_msg">No any data to show</div>
<?php
	} else {
?>
	<table class="box-table-a" width="100%">
		<tr>
		    <th width="30%">Hotel Title</th>
		    <th width="15%">Hotel City</th>
		    <th width="15%">Hotel Country</th>
		    <th width="10%">Is enabled</th>
		    <th width="5%">&nbsp;</th>
		    <th width="5%">&nbsp;</th>
		    <th width="5%">&nbsp;</th>
		    <th width="5%">&nbsp;</th>
		    <th width="5%">&nbsp;</th>
		</tr>
		<?php foreach($this->Hotel_arr as $hotel) : ?>
		<tr>
	    	<td><?php echo  $hotel['hotel_title'];?></td>
	    	<td><?php echo $hotel['hotel_city'] ;?></td>
	    	<td><?php echo $hotel['hotel_country'] ;?></td>
	    	<td><?php echo $hotel['is_Enabled'] ;?></td>	    	
	    	<td><a href="javascript: void(0);" onclick="loadPage('/admin/hotel/edit/hotel_id/<?php echo $hotel['hotel_id']; ?>');" title="Edit"><img src="/images/admin/icons/edit.gif" alt=""/></a></td>
	    	<td><a href="javascript: void(0);" onclick="loadPage('/admin/hotel/addimage/hotel_id/<?php echo $hotel['hotel_id']; ?>');" title="Add Images"><img src="/images/admin/icons/imgpreview.png" alt=""/></a></td>
	    	<td><a href="javascript: void(0);" onclick="deleteHotel('<?php echo $hotel['hotel_id'];?>')"><img src="/images/admin/icons/disable.gif" alt=""/></a></td>
	    	<td><a href="javascript: void(0);" onclick="addAmenities('<?php echo $hotel['hotel_id'];?>')"><img src="/images/admin/icons/a-plus.gif" title="Add Amenities" alt=""/></a></td>
	    	<td><a href="javascript: void(0);" onclick="loadPage('/admin/rates/index/hotel_id/<?php echo $hotel['hotel_id']; ?>');"><img src="/images/admin/icons/money.png" title="View Rates" alt=""/></a></td>	    	
		</tr>
		<?php endforeach; ?>
	</table>
<?php
	}
?>	
</div>
<div id="formamenity" style="display:none;" title="Amenities">
	<div id="table_content"></div>
</div>